package com.initialize.service.api.system.feign;

import com.baomidou.mybatisplus.extension.api.R;
import com.initialize.common.mybatis.plus.entity.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * Feign失败配置
 *
 * @author Chill
 */
@Slf4j
@Component
public class IUserClientFallback implements IUserClient {

    @Override
    public R<User> userInfo(Long userId) {
        log.info("请求失败");
        return R.failed("用户的信息");
    }

    /**
     * 获取用户信息
     *
     * @param login
     * @return
     */
    @Override
    public User login(String login) {
        return null;
    }


}
